{% load i18n %}
{% load ocamedia %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/> 
<meta name="author" content="author"/> 
<link rel="stylesheet" type="text/css" href="{% oca_media_prefix %}css/default.css" media="screen"/>
<title>{% block title %} {% endblock %}</title>
{% block extrahead %}{% endblock %}
</head>
<!-- default margin = default layout -->
<body style="margin: 0 12%;">

<div class="container">

	<div class="header">
		{% block header %} 
		<a href='.'><span>Open Contest Arena</span></a>
		{% endblock %}
	</div>

	<div class="stripes opts">
		<span>
		{% if user.is_authenticated %}
		{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %} / <a href="password_change/">{% trans 'Change password' %}</a> / <a href="logout/">{% trans 'Log out' %}</a>{% endblock %}
		{% endif %}
		</span>
	</div>
	
	<div class="nav">
		{% block nav %} {% endblock %}
		<div class="clearer"><span></span></div>
	</div>

	<div class="stripes navs">
		<span>
		{% block breadcrumbs %}<a href="../">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title|escape }}{% endif %}{% endblock %}
		</span>
	</div>

	<div class="main">
	
	<div class="left">

		<div class="content">

		{% block content %}  {% endblock %}
		</div>

	</div>

	<!--<div class="right">

		<div class="subnav">

		{% block subnav %} {% endblock %}

		</div>

	</div>
	!-->
	<div class="clearer"><span></span></div>

	</div>
	
	<div class="footer">
	{% block footer %}
		<div class="col3">
		<h2>Top Participates:</h2>
		{% block footer1 %}
			{% if users %}
				<ul>
					{% for usuario in users %}
					<li><a href="profile/{{ usuario.username }}/">{{ usuario.username }}</a></li>
					{% endfor %}
				</ul>
				{% endif %}
		{% endblock %}
		</div>

		<div class="col3center"
		<h2>Proximas Competencias</h2>
		{% block footer2 %}
			{% if contests %}
			<ul>
				{% for contest in contests %}
				<li><a href="contest/{{ contest.id }}/">{{ contest.nombre }}</a></li>
				{% endfor %}
			</ul>
			{% endif %}
		{% endblock %}
		</div>

		<div class="col3">
		<h2>Mejores Soluciones</h2>
		{% block footer3 %}
			{% if solutions %}
				<ul>
					{% for solution in solutions %}
					<li><a href="contest/{{ solution.competencia.id }}/problem/{{ solution.problema.id }}/">{{ solution }}</a></li>
					{% endfor %}
				</ul>
				{% endif %}
		{% endblock %}
		</div>

		<div class="bottom">
		
		<span class="left">&copy; 2008 <a href="/">Opencontestarena.com</a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> &amp; <a href="http://validator.w3.org/check?uri=referer">XHTML</a>.</span>
		<span class="right">Template design by <a href="http://templates.arcsin.se">Arcsin</a></span>

		<div class="clearer"><span></span></div>

		</div>
	{% endblock %}
	</div>

</div>

</body>

</html>